export default {
    namespaced:true,
    state:()=>({
        count:99
    }),
    getters:{
        doubleCount(state,getters,rootState){
            return state.count+rootState.rootCounter
        }
    },
    mutations:{
        incrementCount(state){
            state.count++
        }
    },
    actions:{
        incrementCountAction(context){
            context.commit("incrementCount")
        }
    }
}